﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class GoodsReceiptConfiguration : EntityTypeConfiguration<GoodsReceipt>
    {
        public GoodsReceiptConfiguration()
        {
            Property(g => g.GoodsReceiptID).IsRequired(); 
            Property(g => g.AdditionalContent).IsOptional();  
            Property(g => g.Created).IsOptional(); 
             
            Property(g => g.Modified).IsOptional(); 
             
            Property(g => g.DelNote).IsOptional();  
            Property(g => g.DriverName).IsOptional(); 
            Property(g => g.Forwarder).IsOptional(); 
            Property(g => g.Gr_Number).IsOptional(); 
            Property(g => g.LicencePlate).IsOptional(); 
            Property(g => g.ReceiptDate).IsOptional();  
            Property(g => g.ReceiptState).IsOptional(); 
            Property(g => g.ReferenceNo).IsOptional(); 
            Property(g => g.ClientID).IsOptional(); 
            Property(g => g.OperatorID).IsRequired(); 
            Property(g => g.GoodsInLocationID).IsRequired(); 
        }
    }
}
